import { ConfigService } from '@nestjs/config';

export const OSSConfig = (configService: ConfigService) => ({
    accessKeyId: configService.get<string>('OSS_ACCESS_KEY_ID'),
    accessKeySecret: configService.get<string>('OSS_ACCESS_KEY_SECRET'),
    region: configService.get<string>('OSS_REGION'),
    bucket: configService.get<string>('OSS_BUCKET'),
    roleArn: configService.get<string>('OSS_ROLE_ARN'),
    endpoint: configService.get<string>('OSS_ENDPOINT'),
});